package com.zmc.common.exception.base;

import com.zmc.common.enums.ErrorCodeEnum;

/**
 * 页面异常
 *
 * @author zmc
 */
public final class WebDisplayException extends RuntimeException {

    private final ErrorCodeEnum errorCodeEnum;

    public WebDisplayException(String msg) {
        super(msg);
        this.errorCodeEnum = ErrorCodeEnum.THIRD_REQUEST_EXCEPTION;
    }

    public ErrorCodeEnum getErrorCode() {
        return errorCodeEnum;
    }
}